<nav class="navbar navbar-collapse">
    <div class="container-fluid">

        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <a class="navbar-brand" href="{% url 'todo:index' %}"><span class="glyphicon glyphicon-home"></span> 首页</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="{% url 'todo:index' %}">待办事项</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right  ">
                <p class="navbar-text text-primary">您好,{{ request.user }}</p>
                <li><a href="{% url 'myauth:logout' %}">退出登录</a></li>
            </ul>

        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>